/*
 *  test/test4.c
 *
 *  Harry Wei <harryxiyou@gmail.com> (C) 2011
 */
#include <gtk/gtk.h>

int main (int argc, char *argv[])
{
  	GtkWidget *dialog;
#if 1
 	GtkWidget *vbox;
 	GtkWidget *menubar;
 	GtkWidget *menu;
 	GtkWidget *menu_item;

#ifdef ENABLE_NLS
 	bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
 	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 	textdomain (GETTEXT_PACKAGE);
#endif
 	gtk_set_locale ();
#endif
 	gtk_init (&argc, &argv);
 	dialog = gtk_dialog_new();
 	gtk_window_set_position (GTK_DIALOG(dialog),GTK_WIN_POS_CENTER);
 	gtk_window_set_default_size (GTK_DIALOG(dialog), 400, 300);
 	gtk_window_set_title(GTK_DIALOG(dialog), "monitor");
 	//GTK_WINDOW (dialog)->allow_shrink = TRUE;
#if 1
 	g_signal_connect(G_OBJECT(dialog), "destroy", G_CALLBACK(gtk_main_quit), NULL);
//    	gtk_widget_show (dialog);
 
 	vbox = gtk_vbox_new (FALSE, 3);
 	gtk_container_add (GTK_CONTAINER(dialog), vbox);

 	menubar = gtk_menu_bar_new ();
 	gtk_box_pack_start (GTK_BOX(vbox), menubar, FALSE, FALSE, 2);

 	menu = gtk_menu_new();
 	//gtk_menu_shell_append(GTK_MENU_SHELL (menubar), menu);

 	menu_item = gtk_menu_item_new_with_label ("进程");
	gtk_menu_shell_append(GTK_MENU_SHELL (menubar), menu_item);
#endif
 	gtk_widget_show(menu_item);
 	gtk_widget_show(menu);
 	gtk_widget_show (menubar);
 	gtk_widget_show(vbox);
 	gtk_widget_show (dialog);
 	//gtk_widget_show_all (window);

 	gtk_main ();
 	return 0;
}
